CC=g++

OBJ=main.o Primative.o Scene.o
LDFLAGS+=-lX11 -lpthread -lclUtil -lOpenCL
CFLAGS+=-g -O0 -Wall -Werror -IInclude -std=c++0x -I/usr/include/clutil

cltrace: $(OBJ)
	$(CC) -o cltrace $(OBJ) $(LDFLAGS)

.cc.o:
	$(CC) -c $(CFLAGS) -o $@ $<

clean:
	rm cltrace *.o
